<?php

namespace app\model\questionnaire;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 问卷-题库-标签
 */
class QuestionnaireTopicLabelModel extends BaseModel
{
    protected $name = 'questionnaire_topic_label';

    /**
     * 标签名称
     * @return BelongsTo
     */
    public function labelName(): BelongsTo
    {
        return $this->belongsTo(QuestionnaireLabelModel::class,'label_id')->bind([
            'name'
        ]);
    }
}